package com.duying.gh.action.stat;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.duying.gh.GhCommonAction;
import com.duying.gh.model.People;

public class SearchAction  extends GhCommonAction{
	public ActionForward seeDetail(
            ActionMapping mapping,
            ActionForm form, 
            HttpServletRequest request,
            HttpServletResponse response) throws Exception {
		String peopleId = request.getParameter("peopleId");
		People p = (People)this.baseDao.get(People.class, Integer.valueOf(peopleId));
		List listHj = this.hjManager.getHjByPeopleId(Integer.valueOf(peopleId));
		
		request.setAttribute("p", p);
		request.setAttribute("listHj", listHj);
		
		return mapping.findForward("seeDetail");
	}
}
